package com.jiazhong.example.project.bookstore.commons.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("`order`")
public class Order implements Serializable {
    @TableId
    private String id;
    private String userId;
    private Integer totalCount;
    private Double totalAmount;
    private Integer status; // 1:未付款 2:已付款 3:已发货 4:已退款
    private String createTime;
    private String updateTime;
    private Integer isDeleted;
    @TableField(exist = false)
    private List<OrderItem> orderItems;
}
